<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<?php
include_once '../objects/person.php';
include_once '../actions/listLand.php';
include_once '../actions/listUser.php';
session_start();
if (!isset($_SESSION['user'])) {
    header("location: ../../index.php");
} else {
    $user = $_SESSION['user'];
    if($user->getRolperson() == 0){
       header("location: ../../index.php");
    } 
}
$lists = new listUser();
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>* SEPC *</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" type="text/css" href="../../style/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="../../style/bootstrap-responsive.css">
        <link rel="stylesheet" type="text/css" href="../../style/styles.css">
    </head>
    <body>        
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                    <a href="../../index.php" class="brand"><img src="../../img/sepc_logo.png" alt=""></a>
                    <div class="nav-collapse">
                        <ul class="nav">
                            <li class="nav-header"><h3>.: Registro de Ganado :.</h3></li>
                            <li><a></a></li><li><a></a></li><li><a></a></li><li><a></a></li>
                            <li><a></a></li><li><a></a></li>
                            <li><a></a></li>
                            <li class="right"><a href="menuUser.php"><?php echo $user->getMail();?></a></li>                            
                        </ul>
                        <form class="navbar-form pull-right" name="" action="../closeConexion.php" method="post" >
                            <button type="submit" class="btn btn-danger"><i class="icon-remove-sign  icon-white"></i> Cerrar Session</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <br>
       <div class="container">
            <div class="row-fluid">
                <ul class="pager ">
                    <li class="previous">
                        <a class="badge-success" href="enterCattleC_2.php"><i class="icon-arrow-left icon-white"></i></a>
                    </li>
                    <li class="next disabled">
                        <a class="badge-success" href="#"><i class="icon-arrow-right icon-white"></i></a>
                    </li>
                </ul>
                <legend>Registre los datos de tres muestras de ganado por la etapa CEBA</legend>
                <div class="span3"></div>
                <div>
                    <form action="../servlet.php?action=enterCattleC3" name="enterCattleC3" method="post" class="form-horizontal">
                        <table>
                            <tbody>
                                <tr>
                                    <td><label for="batch9" class="control-label">Lote:</label></td>
                                    <td><select class="input-xlarge" name="batch9" id="batch9"><?php echo $lists->listBatch($user->getDocnum()); ?></select></td>
                                </tr>
                                <tr>
                                    <th><br></th>
                                </tr>
                                <tr>
                                    <th></th>
                                    <th>Muestra 3</th>
                                </tr>
                                <tr>
                                    <td><label for="date9" class="control-label">Fecha Nacimiento:</label></td>
                                    <td><input class="input-xlarge" type="date" name="date9" id="date9" required="required"/></td>
                                </tr>
                                <tr>
                                    <td><label for="birthWeight9" class="">Peso de Nacimiento(Kg):</label></td>
                                     <td><input class="input-xlarge" type="number" name="birthWeight9" id="birthWeight9" placeholder="Peso en un rango de (23-45)" required="required" min="23" max="45" maxlength="2"/>        
                                    </td>
                                </tr>
                                 <tr>
                                    <td><label for="weigthW9" class="">Peso de Destete (Kg):</label></td>
                                    <td><input class="input-xlarge" type="number"  name="weigthW9" id="weigthW9" required="required"/></td>
                                </tr>
                                <tr>
                                    <td><label for="ageW9" class="">Edad de Destete (Dias):</label></td>
                                    <td><input class="input-xlarge" type="number" name="ageW9" id="ageW9"/></td>
                                </tr>
                                <tr>
                                    <td><label for="weigthAct9" class="control-label">Peso Actual (Kg):</label></td>
                                    <td><input class="input-xlarge" type="number" name="weigthAct9" id="weigthAct9" required="required"/></td>
                                </tr>
                                <tr>
                                    <td><label for="ageAct9" class="control-label">Edad Actual (Dias):</label></td>
                                    <td><input class="input-xlarge" type="number"  name="ageAct9" id="ageAct9" required="required"/></td>
                                </tr>
                                </tr>
                            </tbody>
                        </table>
                        <br>
                        <div class="form-actions" align="center">
                            <button type="submit" class="btn btn-primary"><i class="icon-check icon-white"></i> Registar</button>
                            <a href="Registers.php" class="btn btn-danger"><i class="icon-remove icon-white"></i> Cancelar</a>
                        </div>
                    </form>
                </div>
                <div class="span3"></div>
            </div>
           <footer class="footer">
            <div class="container">
                <small> 
                    <img src="../../img/unicor_logo.png">
                    <strong>    Universidad de Cordoba. Facultad de Ingen&iacute;erias :: Departamento de Ingen&iacute;eria de Sistemas y Telecomunicaciones</strong>
                    <br>
                    Dise&ntilde;ado y Desarrollado por: Mar&iacute;a Alejandra Teher&aacute;n &amp; Daniela Mu&ntilde;oz De La Rosa &copy;
                </small>
            </div>
        </footer>
        </div>
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/bootstrap.js"></script>
        <script type="text/javascript" src="js/bootstrap-collapse.js"></script>
    </body>
</html>
